<script>
	export default {
		onLaunch: function() {
			// 项目初始化
			const systemInfo = wx.getSystemInfoSync();
			const stateHeight = systemInfo.statusBarHeight; // 状态栏高度（px）
			const stateHeightRpx = (stateHeight * (750 / systemInfo.windowWidth)).toFixed(0); //（转rpx）
			const topGuheightRpx = (44 * (750 / systemInfo.windowWidth)).toFixed(0); //（转rpx）
			uni.setStorageSync('topHeightRpx', {
				"stateHeightRpx": stateHeightRpx,
				"topGuheightRpx": topGuheightRpx
			});
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import '@/uni_modules/uni-scss/index.scss';
	@import '@/static/app.scss';
	/* #ifndef APP-NVUE */
	@import '@/static/customicons.css';
	// 设置整个项目的背景色
	page {
		background-color: #ffffff;
	}

	/* #endif */
	.example-info {
		font-size: 14px;
		color: #333;
		padding: 10px;
	}
</style>
